<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<!-- manifest="cache.manifest" -->
<head>
    <meta charset="utf-8" />
    <title>{$seo.title}</title>
    <meta name="keywords" content="{$seo.keys}" />
    <meta name="description" content="{$seo.desc}" />
    <link type="text/css" rel="stylesheet"  href="__CSS__/format_dom.css"/>
    <link type="text/css" rel="stylesheet"  href="__CSS__/main.css"/>
    <!--[if lte IE 8]>
    <script src="__JS__/ie/html5shiv.js"></script>
    <![endif]-->
    <!--[if IE 6]>
    <script type="text/javascript" src="__JS__/DD_belatedPNG.js"></script>
    <script type="text/javascript">DD_belatedPNG.fix("*")</script>
    <![endif]-->
    <script src="__PUBLIC__/js/jquery.min.js"></script>
</head>
<body>
<div>
    <div class="top_line">
        <div class="main">
            <ul>
                {volist name='menu' id='vo'}
                {if condition="$vo.pos eq 1"}
                {notempty name='vo.url'}
                {php}$url = $vo['url'];{/php}
                {else /}
                {notempty name='vo.alias'}{php}$url=url($vo['model'].'/detail',['cate'=>$vo['alias']]);{/php}{else /}{php}$url=url($vo['model'].'/index');{/php}{/notempty}
                {/notempty}
                <li><a href="{$url}" title="{$vo.title}" target="{$vo.open_type}" {if condition="$vo.model eq $controller"}class="on"{/if}>{$vo.title}</a></li>
                {/if}
                {/volist}
                <li><a href="{:url('Agency/index')}">经纪人</a></li>
            </ul>
            {empty name='userInfo'}
            <span><a href="{:url('user.login/index')}" >登录</a></span>
            <span><a href="{:url('user.login/reg')}" >注册</a></span>
            {else /}
            <div style="float:right;color:#fff;"><em>{$userInfo.nickname}</em>,欢迎您的到来 <a href="{:url('user.index/index')}">会员中心</a> | <a href="{:url('user.login/logout')}">退出</a></div>
            {/empty}
        </div>
    </div>
    <div class="top_nav">
        <div class="top">
            <span class="logo"><img src="{$site.pcLogo}" width="80" height="64"></span>
            <div class="city city-box"><span class="city_span"></span>{$cityInfo.name}</div>
            <div class="city_box" id="CPM" style="display:none;">
                <div class="cities-con">
                    <p class="tit">选择城市 <a href="{:url('Index/index@www')}" class="gd_btn">更多城市</a></p>
                    <ul class="cities-opts clearfix">
                        {volist name='city' id='vo'}
                        <li class="clearfix">
                            <em class="icons">{$key}</em>
                            <p>
                                {volist name='vo' id='val'}
                                <a {if condition="$val.is_hot eq 1"}class="highlight"{/if} href="{:url('Index/index@'.$val['domain'])}">{$val.name}</a>
                                {/volist}
                            </p>
                        </li>
                        {/volist}
                    </ul>
                    <i></i>
                </div>
                <a href="javascript:;" class="close_btn">×</a>
            </div>
            <div class="nav t_mar">
                <ul>
                    {volist name='menu' id='vo'}
                    {if condition="$vo.pos eq 1"}
                    {notempty name='vo.url'}
                    {php}$url = $vo['url'];{/php}
                    {else /}
                    {notempty name='vo.alias'}{php}$url=url($vo['model'].'/detail',['cate'=>$vo['alias']]);{/php}{else /}{php}$url=url($vo['model'].'/index');{/php}{/notempty}
                    {/notempty}
                    <li><a href="{$url}" title="{$vo.title}" target="{$vo.open_type}" {if condition="$vo.model eq $controller"}class="on"{/if}>{$vo.title}</a></li>
                    {/if}
                    {/volist}
                </ul>
            </div>
        </div>
    </div>
    {block name='search'}
    <div class="h_l_s overflow_h">
        <form action="{:url('Loupan/index')}" method="get" id="search-form">
            <div class="h_l_s_box">
<span class="h_l_input">
<input name="keyword" type="text" class="h_l_i" id="keyword" placeholder="请输入楼盘名称">
<a href="javascript:;" class="but03" id="search-btn">搜索</a>
</span>
                <a href="{:url('Map/index')}" class="but04">地图找房</a>
            </div>
        </form>
    </div>
    {/block}
</div>
{block name='content'}{/block}
{include file='public/footer' /}
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script>
    $(function(){
        $('#search-btn').bind('click',function(){
            var keyword = $('#keyword').val();
            if(keyword.length==0){
                layer.msg('请填写楼盘关键词',{icon:2});
                return false;
            }
            $('#search-form').submit();
        });
    });
</script>
</body>
</html>
